<template>
  <div class="block-card">
    <div class="block-card__header">
      {{ title }}
    </div>
    <div class="block-card__body">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="less">
.block-card {
  background-color: #ffffff;

  &__header {
    position: relative;
    height: 100px;
    font-size: 36px;
    font-family: @font-medium;
    font-weight: 500;
    color: #222222;
    line-height: 100px;
    padding-left: 40px;
    box-shadow: inset 0px -2px 0px 0px #F5F5F5;

    &::before {
      content: '';
      height: 32px;
      width: 8px;
      border-radius: 0 8px 8px 0;
      background-color: @primary;
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
    }
  }

  &__body {
    padding: 0 40px;
  }
}
</style>
